package com.his.bean;

import java.io.Serializable;
import java.math.BigDecimal;

/**
 * 用户提现申请
 * @TableName dzm_his_cash_out
 */
public class DzmHisCashOut implements Serializable {
    /**
     * 
     */
    private Integer id;

    /**
     * 所属医院id
     */
    private Integer hospitalId;

    /**
     * 微信appid
     */
    private String appid;

    /**
     * 申请人id
     */
    private Integer userId;

    /**
     * 提现人openid
     */
    private String openid;

    /**
     * 提现金额
     */
    private BigDecimal amount;

    /**
     * 申请时间
     */
    private Integer addtime;

    /**
     * 申请状态：0待审核，1已通过，2已驳回
     */
    private Boolean status;

    /**
     * 申请ip
     */
    private String ip;

    /**
     * 提现接收方式：0微信，1支付宝，2银行，3现金
     */
    private Boolean typeId;

    /**
     * 如果不是微信，则填写自己的收款方式
     */
    private String typeFix;

    /**
     * 处理人id
     */
    private Integer admUid;

    /**
     * 处理人ip
     */
    private String admIp;

    /**
     * 处理人意见
     */
    private String admMemo;

    /**
     * 处理时间
     */
    private Integer admTime;

    private static final long serialVersionUID = 1L;

    /**
     * 
     */
    public Integer getId() {
        return id;
    }

    /**
     * 
     */
    public void setId(Integer id) {
        this.id = id;
    }

    /**
     * 所属医院id
     */
    public Integer getHospitalId() {
        return hospitalId;
    }

    /**
     * 所属医院id
     */
    public void setHospitalId(Integer hospitalId) {
        this.hospitalId = hospitalId;
    }

    /**
     * 微信appid
     */
    public String getAppid() {
        return appid;
    }

    /**
     * 微信appid
     */
    public void setAppid(String appid) {
        this.appid = appid;
    }

    /**
     * 申请人id
     */
    public Integer getUserId() {
        return userId;
    }

    /**
     * 申请人id
     */
    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    /**
     * 提现人openid
     */
    public String getOpenid() {
        return openid;
    }

    /**
     * 提现人openid
     */
    public void setOpenid(String openid) {
        this.openid = openid;
    }

    /**
     * 提现金额
     */
    public BigDecimal getAmount() {
        return amount;
    }

    /**
     * 提现金额
     */
    public void setAmount(BigDecimal amount) {
        this.amount = amount;
    }

    /**
     * 申请时间
     */
    public Integer getAddtime() {
        return addtime;
    }

    /**
     * 申请时间
     */
    public void setAddtime(Integer addtime) {
        this.addtime = addtime;
    }

    /**
     * 申请状态：0待审核，1已通过，2已驳回
     */
    public Boolean getStatus() {
        return status;
    }

    /**
     * 申请状态：0待审核，1已通过，2已驳回
     */
    public void setStatus(Boolean status) {
        this.status = status;
    }

    /**
     * 申请ip
     */
    public String getIp() {
        return ip;
    }

    /**
     * 申请ip
     */
    public void setIp(String ip) {
        this.ip = ip;
    }

    /**
     * 提现接收方式：0微信，1支付宝，2银行，3现金
     */
    public Boolean getTypeId() {
        return typeId;
    }

    /**
     * 提现接收方式：0微信，1支付宝，2银行，3现金
     */
    public void setTypeId(Boolean typeId) {
        this.typeId = typeId;
    }

    /**
     * 如果不是微信，则填写自己的收款方式
     */
    public String getTypeFix() {
        return typeFix;
    }

    /**
     * 如果不是微信，则填写自己的收款方式
     */
    public void setTypeFix(String typeFix) {
        this.typeFix = typeFix;
    }

    /**
     * 处理人id
     */
    public Integer getAdmUid() {
        return admUid;
    }

    /**
     * 处理人id
     */
    public void setAdmUid(Integer admUid) {
        this.admUid = admUid;
    }

    /**
     * 处理人ip
     */
    public String getAdmIp() {
        return admIp;
    }

    /**
     * 处理人ip
     */
    public void setAdmIp(String admIp) {
        this.admIp = admIp;
    }

    /**
     * 处理人意见
     */
    public String getAdmMemo() {
        return admMemo;
    }

    /**
     * 处理人意见
     */
    public void setAdmMemo(String admMemo) {
        this.admMemo = admMemo;
    }

    /**
     * 处理时间
     */
    public Integer getAdmTime() {
        return admTime;
    }

    /**
     * 处理时间
     */
    public void setAdmTime(Integer admTime) {
        this.admTime = admTime;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        DzmHisCashOut other = (DzmHisCashOut) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getHospitalId() == null ? other.getHospitalId() == null : this.getHospitalId().equals(other.getHospitalId()))
            && (this.getAppid() == null ? other.getAppid() == null : this.getAppid().equals(other.getAppid()))
            && (this.getUserId() == null ? other.getUserId() == null : this.getUserId().equals(other.getUserId()))
            && (this.getOpenid() == null ? other.getOpenid() == null : this.getOpenid().equals(other.getOpenid()))
            && (this.getAmount() == null ? other.getAmount() == null : this.getAmount().equals(other.getAmount()))
            && (this.getAddtime() == null ? other.getAddtime() == null : this.getAddtime().equals(other.getAddtime()))
            && (this.getStatus() == null ? other.getStatus() == null : this.getStatus().equals(other.getStatus()))
            && (this.getIp() == null ? other.getIp() == null : this.getIp().equals(other.getIp()))
            && (this.getTypeId() == null ? other.getTypeId() == null : this.getTypeId().equals(other.getTypeId()))
            && (this.getTypeFix() == null ? other.getTypeFix() == null : this.getTypeFix().equals(other.getTypeFix()))
            && (this.getAdmUid() == null ? other.getAdmUid() == null : this.getAdmUid().equals(other.getAdmUid()))
            && (this.getAdmIp() == null ? other.getAdmIp() == null : this.getAdmIp().equals(other.getAdmIp()))
            && (this.getAdmMemo() == null ? other.getAdmMemo() == null : this.getAdmMemo().equals(other.getAdmMemo()))
            && (this.getAdmTime() == null ? other.getAdmTime() == null : this.getAdmTime().equals(other.getAdmTime()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getHospitalId() == null) ? 0 : getHospitalId().hashCode());
        result = prime * result + ((getAppid() == null) ? 0 : getAppid().hashCode());
        result = prime * result + ((getUserId() == null) ? 0 : getUserId().hashCode());
        result = prime * result + ((getOpenid() == null) ? 0 : getOpenid().hashCode());
        result = prime * result + ((getAmount() == null) ? 0 : getAmount().hashCode());
        result = prime * result + ((getAddtime() == null) ? 0 : getAddtime().hashCode());
        result = prime * result + ((getStatus() == null) ? 0 : getStatus().hashCode());
        result = prime * result + ((getIp() == null) ? 0 : getIp().hashCode());
        result = prime * result + ((getTypeId() == null) ? 0 : getTypeId().hashCode());
        result = prime * result + ((getTypeFix() == null) ? 0 : getTypeFix().hashCode());
        result = prime * result + ((getAdmUid() == null) ? 0 : getAdmUid().hashCode());
        result = prime * result + ((getAdmIp() == null) ? 0 : getAdmIp().hashCode());
        result = prime * result + ((getAdmMemo() == null) ? 0 : getAdmMemo().hashCode());
        result = prime * result + ((getAdmTime() == null) ? 0 : getAdmTime().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", hospitalId=").append(hospitalId);
        sb.append(", appid=").append(appid);
        sb.append(", userId=").append(userId);
        sb.append(", openid=").append(openid);
        sb.append(", amount=").append(amount);
        sb.append(", addtime=").append(addtime);
        sb.append(", status=").append(status);
        sb.append(", ip=").append(ip);
        sb.append(", typeId=").append(typeId);
        sb.append(", typeFix=").append(typeFix);
        sb.append(", admUid=").append(admUid);
        sb.append(", admIp=").append(admIp);
        sb.append(", admMemo=").append(admMemo);
        sb.append(", admTime=").append(admTime);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}